package arsmodeller.model;

import javax.swing.ImageIcon;

public class PaletteElement {
	private String name;
	private String text;
	private ImageIcon ico;
	private String iconImagePath;

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public PaletteElement(String name, String text) {
		setName(name);
		setText(text);
	}

	public void setImageIcon(String imageIconPath) {
		this.iconImagePath = imageIconPath;
		ico = new ImageIcon(imageIconPath);

	}

	public ImageIcon getImageIcon() {
		return this.ico;

	}

	public PaletteElement(String name, String text, String imageIconPath) {

		setName(name);
		setText(text);
		setImageIcon(imageIconPath);

	}

}
